package net.lanelife.casino.cms.web.controller;

import net.lanelife.casino.caipiao.dto.admin.PaymentPlatformCreateDTO;
import net.lanelife.casino.caipiao.dto.admin.PaymentPlatformDTO;
import net.lanelife.casino.caipiao.dto.admin.PaymentPlatformTable;
import net.lanelife.casino.caipiao.dto.admin.PaymentPlatformUpdateDTO;
import net.lanelife.casino.caipiao.entity.PaymentPlatform;
import net.lanelife.casino.caipiao.service.api.IPaymentPlatformService;
import net.lanelife.casino.cms.web.controller.support.CRUDController;
import net.lanelife.casino.common.service.support.IGenericService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = PaymentPlatformController.PATH)
public class PaymentPlatformController extends CRUDController<PaymentPlatform, Integer, PaymentPlatformDTO, PaymentPlatformCreateDTO, PaymentPlatformUpdateDTO, PaymentPlatformTable<PaymentPlatformDTO>> {
	
	public static final String PATH = "/payment-platform";
	
	public PaymentPlatformController() {
		super(PATH);
	}

	@Autowired
	private IPaymentPlatformService paymentPlatformService;
	
	@Override
	protected IGenericService<PaymentPlatform, Integer> getService() {
		return paymentPlatformService;
	}
	

}
